
#ifndef FILEDESCENTRY_H_
#define FILEDESCENTRY_H_

#include <string>
#include <iostream>

using namespace std;

class FileDescEntry {
private:
	int filePos;
	string permissions;
	int pointerToInode;
	int connectedProcessesCounter;

public:
	FileDescEntry(int filePosition, string filePermissions, int inodePointer);
	virtual ~FileDescEntry();

	int getFilePosition();
	string getFilePermission();
	int getPointerToInode();

	void setFilePosition(int newFilePosition);
	void setFilePermission(string newFilePermissions);
	void setPointerToInode(int newpointerToInode);
	void incNumOfConnectedProcesses();
	void decNumOfConnectedProcesses();
	int getNumOfConnectedProcesses();
};

#endif /* FILEDESCENTRY_H_ */
